<script setup lang="ts">
import { selectOpen } from "@/api/student/he/frontMain";

// 图片路径
// const url =
//   "https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg";
const props=defineProps(['price','img','className','enlistsNum','teacherName'])
</script>
<template>
  <div class="img">
    <div>
      <el-image style="width: 100%; height: 100%" :src="img" fit="fit" />
    </div>
    <!-- <p>用秒杀学习mysql,redis及DDD来疯 狂涨薪</p> -->
    <p>{{className}}</p>
    <p>共9节 | {{teacherName}}</p>
    <p><span>{{price}}</span>&nbsp;&nbsp;&nbsp;&nbsp;{{enlistsNum}}</p>
  </div>
</template>
<style scoped>
.img {
  width: 17%;
  /* height: 300px; */
  margin: 10px;
  display: inline-block;
}
p {
  font-size: 12px;
  color: black;
}
</style>
